import Layout from '@/pages/public/layout' // 公共部分

const video = [{
  path: '/course/video',
  component: Layout,
  children: [{
    path: 'list',
    component: () => import('@/pages/course/video/list.vue'),
    meta: {
      title: '点播课程-列表',
      permission: 'course.video.default'
    }
  }, {
    path: 'recommend',
    component: () => import('@/pages/course/video/recommend.vue'),
    meta: {
      title: '推荐点播课程-列表',
      permission: 'course.video.recommend'
    }
  }, {
    path: 'marquee',
    component: () => import('@/pages/course/video/marquee.vue'),
    meta: {
      title: '跑马灯配置',
      permission: 'course.video.marquee'
    }
  }, {
    path: 'create',
    component: () => import('@/pages/course/video/create.vue'),
    meta: {
      title: '点播课程-新建',
      permission: 'course.video.default.create'
    }
  }, {
    path: ':id/edit',
    component: () => import('@/pages/course/video/edit.vue'),
    meta: {
      title: '点播课程-编辑',
      permission: 'course.video.default.edit'
    }
  }, {
    path: ':id/section',
    component: () => import('@/pages/course/video/section/index.vue'),
    meta: {
      title: '点播课程-课时管理',
      permission: 'course.video.default.section'
    }
  }, {
    path: ':id/section/:pid/create',
    component: () => import('@/pages/course/video/section/create.vue'),
    meta: {
      title: '点播课程-课时管理-新建课时'
    }
  }, {
    path: ':id/section/:sid/edit',
    component: () => import('@/pages/course/video/section/edit.vue'),
    meta: {
      title: '点播课程-课时管理-编辑课时'
    }
  }, {
    path: ':id/student',
    component: () => import('@/pages/course/video/student/index.vue'),
    meta: {
      title: '学员管理',
      permission: 'course.video.default.student'
    }
  }, {
    path: ':id/student/:user_id(\\d+)/info',
    component: () => import('@/pages/course/video/student/learn_info.vue'),
    meta: {
      title: '学员管理- 学习详情',
      permission: 'course.video.default.student'
    }
  }]
}]

export default video
